package com.gzdh.tang.modu.model;

import lombok.Data;

@Data
public class AliPayResultVo {
    private String sessionId;
    private String tradeNo;
    private boolean success;
    private String ftoken;
    private String scanCode;
    private int resultTimeOut = 3;
    private String userName;

    private AdvancedConfigVo advancedConfig = new AdvancedConfigVo();

    public void setTitle(String title) {
        advancedConfig.getOuterSummary().setTitle(title);
        advancedConfig.getOuterSummary().setSubTitle(title);
    }

    public void setPrice(String price) {
        advancedConfig.getOuterSummary().setActualAmount(price);
    }

    public void addOuterExtendsVo(OuterExtendsVo outerExtendsVo) {
        advancedConfig.addOuterExtends(outerExtendsVo);
    }

}
